package com.prs.crm.dao.sale;

import java.util.List;

import com.prs.crm.dao.BaseDao;
import com.prs.crm.domain.sale.SalesContract;
import com.prs.crm.domain.sale.SalesContractDetail;
import com.prs.crm.domain.stock.Product;

public interface SalesContractDao extends BaseDao<SalesContract> {

	void saveOrUpdate(SalesContract sales);

	SalesContract getSalesContract(java.io.Serializable id);

	SalesContractDetail getSalesContractDetail(Product product,
			SalesContract salesContract);

	double getSaleContract(SalesContract re);



	void saveOrUpdateDetail(SalesContractDetail salesContractDetail);

	List<SalesContractDetail> contractDetails(SalesContract salesContract);

	List<SalesContractDetail> getContractDetailsNotReceives(
			SalesContract salesContract);
}
